# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name： timer_alert
Description :
Author : 'li'
date： 10/7/2023
-------------------------------------------------
Change Activity:
10/7/2023:
-------------------------------------------------
"""
from apscheduler.schedulers.background import BackgroundScheduler

import ll
from modules.blk.alarm.blk_alert import send_external_heart_beat


def launch_external_timer_alert():
    ll.get_logger().info('start heart beat alert.')
    scheduler = BackgroundScheduler()
    scheduler.add_job(send_external_heart_beat, 'cron', hour=9)
    scheduler.start()


def launch_xiyuan_timer_alert():
    ll.get_logger().info('start heart beat alert.')
    scheduler = BackgroundScheduler()
    scheduler.add_job(send_external_heart_beat, 'cron', hour=9)
    scheduler.start()
